/**
 * 位置信息接口
 */
export interface Position {
    latitude: number;
    longitude: number;
    cityCode: number;
    cityName: string;
    areaCode: number;
    areaName: string;
}

/**
 * 地区节点接口
 */
export interface RegionNode {
    id: number;
    value:string;
    code: string;
    name: string;
    level: number;
    children?: RegionNode[];
}

/**
 * 城市驾照基地信息接口
 */
export interface CityBaseItem {
    id: number;
    name: string;
    baseType?: string;
    shortName?: string;
    address: string;
    image?: string;
    passRate?: number;
    city?: number;
    latitude?: number;
    longitude?: number;
    description?: string;
    distance?: number;
    duration?: number;
    rating?: number;
}

/**
 * 基地筛选条件列表接口
 */
export interface DrivingBaseFilterList {
    sortType: string;
    distanceRange: number;
    district: number;
}

/**
 * 城市行政区项接口
 */
export interface cityDistrictItem {
    id: number;
    name: string,
    parents: string[]
}

/**
 * 驾照类型接口
 */
export interface LicenseItem {
    child: string;
    name: string,
}

/**
 * 基地交通信息接口
 */
export interface baseTrafficItem {
    trafficId: string,
    station: string,
}

/**
 * 基地执照信息接口
 */
export interface baseLicenseItem {
    licenses: {[key: string]: LicenseItem};
    bases: {[key: number]: string[]},
}

/**
 * 城市基地数据接口
 */
export interface CityBaseData {
    base: CityBaseItem;
    traffic: baseTrafficItem;
    baseLicense: string[];
}

/**
 * 中国城市树接口
 */
export interface ChinaCityTree {
    id: number;
    name: string;
    level: number;
    children?: ChinaCityTree[];
}